home *** CD-ROM | disk | FTP | other *** search
/ Almathera Ten Pack 3: CDPD 3 / Almathera Ten on Ten - Disc 3: CDPD3.iso / ab20 / unarced / graphics / anim / dbview.h < prev    next >
C/C++ Source or Header  |  1995-03-17  |  983b  |  51 lines

  1.  
  2. /* dbview.h
  3.  *    This is a wierd structure which has been around through
  4.  *    lots of code.  It could be greatly simplified for this
  5.  *    application, but who cares!  If you don't like it, change
  6.  *    it - or better yet, don't use it since it is simply part
  7.  *    of a sample program.
  8.  */
  9.  
  10. #include "ilbm.h"
  11. #include "readpict.h"
  12.  
  13. #define MAX(a,b) ((a)>(b)?(a):(b))
  14. #define MIN(a,b) ((a)<(b)?(a):(b))
  15.  
  16. #define MXVIEWS 7
  17.  
  18. struct DBView {
  19.    struct BitMap  BitMap;
  20.    struct cprlist *LOFCprList;
  21.    struct cprlist *SHFCprList;
  22.    SHORT DWidth;
  23.    SHORT DHeight;
  24.    SHORT Depth;
  25.    SHORT DxOffset;
  26.    SHORT DyOffset;
  27.    UWORD Modes;
  28.    WORD  colorMap[32];
  29.    UBYTE nColorRegs;
  30.    UBYTE pad;
  31.    PLANEPTR plane0;
  32.    WORD  planewidth;
  33.    WORD  planeheight;
  34.    struct BitMap  BitMap1;
  35.    SHORT DWidth1;
  36.    SHORT DHeight1;
  37.    SHORT Depth1;
  38.    SHORT DxOffset1;
  39.    SHORT DyOffset1;
  40.    UWORD Modes12;
  41.    PLANEPTR plane1;
  42.    WORD  planewidth1;
  43.    WORD  planeheight1;
  44.    WORD  type;
  45. };
  46.  
  47.  
  48.  
  49.  
  50.  
  51.